<template>
  <!-- html -->
  <div class="person">??</div>
</template>

<script lang="ts" setup name="Person">
import { type PersonInter, type Persons } from "@/types";

//符合PersonInter接口规范的对象person
// let person:PersonInter = {id:'xdsafsda',name:'xiaoji',age:12}

//数组中的每一项都得符合PersonInter的规范
let personList: Persons = [
  { id: "xdsafsda", name: "xiaoji", age: 12 },
  { id: "DSAFSDF", name: "zs", age: 43 },
  { id: "SDAFS", name: "ls", age: 132 },
];
</script>
<style scoped>
/* scoped表示样式只能影响到当前.vue的template */
.person {
  background-color: skyblue;
  box-shadow: 0 0 10px;
  border-radius: 10px;
  padding: 20px;
}
button {
  margin: 0 5px;
}
</style>
